unit DicKoeff;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  AbstDictionary, ActnList, Db, ExtCtrls, Grids, DBGrids, Buttons;

type
  TfmDicKoeff = class(TfmAbstDictionary)
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fmDicKoeff: TfmDicKoeff;

implementation
uses SpisCnst, ModifyKoeff;
{$R *.DFM}

procedure TfmDicKoeff.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  inherited;
  Parent := nil;
end;

procedure TfmDicKoeff.FormCreate(Sender: TObject);
begin
  inherited;
  MandatoryField:='CONTRACTORID';
  ModifyClass := TfmModifyKoeff;
  setTableID(dtKoeff);
  if ((Owner is TForm) AND (TForm(Owner).FormStyle = fsMDIForm)) then begin
    FormStyle := fsMDIChild;
  end;
end;

procedure TfmDicKoeff.FormDestroy(Sender: TObject);
begin
  inherited;
  fmDicKoeff := nil;
end;

end.
